package com.gxa.modules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxa.common.vo.JsonResult;
import com.gxa.common.vo.R;
import com.gxa.modules.pojo.Customer;
import org.springframework.web.multipart.MultipartFile;

public interface CustomerService extends IService<Customer> {

    /**
     * 分页查询
     * @param pageSize
     * @param currentPage
     * @return
     */
    JsonResult findCustomerList(Long pageSize, Long currentPage);

    /**
     * 条件搜索
     * @param currentPage
     * @param pageSize
     * @param customer_name
     * @param phone
     * @param creation_time
     * @return
     */
    JsonResult findCustomerListByCondition(Long currentPage, Long pageSize, String customer_name, String phone, String creation_time);

    /**
     * 删除
     * @param id
     * @return
     */
    R delCustomerById(Integer id);

    /**
     * 添加个人客户信息
     * @param customer
     * @return
     */
    R addCustomer(Customer customer);

    /**
     * 修改个人客户信息
     * @param customer
     * @return
     */
    R updateCustomer(Customer customer);

    /**
     * 修改审核按钮
     * @param customer
     * @return
     */
    R updateCustomerByAuditStatus(Customer customer);

    /**
     * 根据id查询客户信息
     * @param id
     * @return
     */
    R findCustomerById(Integer id);

    /**
     * 上传文件
     * @param file
     * @return
     */
    R uploadFile(MultipartFile file);
}
